package com.sk.sqd;

import com.sk.sqd.prototype.ProTypeTest;
import com.sk.sqd.prototype.Prototype;
import com.sk.sqd.prototype.RealizeTypeA;
import com.sk.sqd.prototype.RealizeTypeB;

import java.util.ArrayList;

public class Test {

    public static void main(String[] args) {
        ArrayList<String> ids = new ArrayList<>();
        ids.add("id1");
        ids.add("id2");
        RealizeTypeB realizeTypeB = new RealizeTypeB(ids);
        Prototype operation1 = new ProTypeTest(realizeTypeB).operation();
        System.out.println(realizeTypeB);
        System.out.println(operation1);

        RealizeTypeA realizeTypeA1 = new RealizeTypeA("name1", 2);
        Prototype operation = new ProTypeTest(realizeTypeA1).operation();
        System.out.println(realizeTypeA1);
        System.out.println(operation);

    }

}
